﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPage.Master" ValidateRequest="false"
    CodeBehind="wfPerContratoMnt.aspx.cs" Inherits="RH.wfPerContratoMnt" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Import Namespace="Texfina.Common.Mg" %>
<%@ Import Namespace="Texfina.Core.Common" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        window.onload = function () {
            var menuTable = document.getElementById('<%=mnuToolbar.ClientID %>');
            var menuLinks = menuTable.getElementsByTagName("a");
            if (menuLinks != null) {
                switch (menuLinks.length) {
                    case 2:
                        menuLinks[0].onclick = function () { return validateEditForm('_BTTSAVE') }
                        break;

                    case 3:
                        menuLinks[0].onclick = function () { return validateEditForm('_BTTSAVE') }
                        menuLinks[1].onclick = function () { return validateEditForm('_BTTSAVNEW') }
                        break;
                }
            }

            var mnuGrid = document.getElementById('<%=mnuGrid.ClientID %>');
            var mnuGridLinks = mnuGrid.getElementsByTagName("a");
            if (mnuGridLinks != null) {
                switch (mnuGridLinks.length) {
                    case 1:
                        mnuGridLinks[0].onclick = function () { return validateEditFormGrid('_BTTNEW') }
                        break;
                }
            }
            
            this.ResizeGrid();
            this.MessageOnPostback();
        }

         function validateGridCommands(key, rowIndex) {
       
            var row = getGridRowByIndex('<%= grdList.ClientID %>', rowIndex);
            if (getObjInnerText(row.cells[parseInt('<%=_GRDLIST_STANULADO %>')]) == '<%=ConstFlagEstado.ACTIVADO %>') {
                alert('El Registro se encuentra eliminado, no puede realizar ninguna accion.');
                return false;
             }

     if (key == 'CmdDow') {
                 
                         if (getObjInnerText(row.cells[parseInt('<%=_GRDLIST_STCONTRAARCH %>')]) != '<%=ConstFlagEstado.ACTIVADO %>') {
                alert('No ha subido aun el contrato Escaneado.');
                return false;
             }
          }

            if (getObjInnerText(row.cells[parseInt('<%=_GRDLIST_STCONTRATO %>')]) == '<%=ConstFlagEstado.ACTIVADO %>') {
                if (key == '<%=ConstGridRowCommand.GRIDEDIT %>') {
                      alert('El Registro ya se encuentra Inactivo, no puede Editarlo.');
                      return false;
                }

                if (key == 'CmdCese') {
                    alert('El Registro ya se encuentra Inactivo.');
                    return false;
                 }

            }

            return true;
         }

        function GetValueFile() {
           document.getElementById('<%=txtidContrato.ClientID %>').value = document.getElementById('<%=fuidContrato.ClientID %>').value;
        }

        function ResizeGrid() {
            internalGridResize("<%= grdList.ClientID %>");
        }

        function panelOnUpdating() {
            updatePanelAnimationUpdating();
        }

        function panelOnUpdated() {
            ResizeGrid();
            updatePanelAnimationUpdated();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="ToolBar">
        <asp:Menu ID="mnuToolbar" runat="server" Orientation="Horizontal" CssClass="ToolBarControl"
            OnMenuItemClick="mnuToolbar_MenuItemClick">
            <Items>
                <asp:MenuItem Text="Guardar" Value="_BTTSAVE" ImageUrl="../Images/Icons/Enabled/SAVE.png">
                </asp:MenuItem>
                <asp:MenuItem Text="Salir" Value="_BTTEXIT" ImageUrl="../Images/Icons/Enabled/BACK.png">
                </asp:MenuItem>
            </Items>
        </asp:Menu>
    </div>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
    <div class="DataHeader">
        <table id="TableDataHeader" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="3">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="width: 10px">
                    &nbsp;
                </td>
                <td>
                    Datos Personales
                </td>
                <td style="width: 10px">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="width: 10px">
                    &nbsp;
                </td>
                <td>
                    <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                        -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                        <table width="100%" cellpadding="0" cellspacing="2">
                            <tr>
                                <td colspan="13">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td style="width: 110px;">
                                    Cod. Personal
                                </td>
                                <td colspan="10">
                                    <esd:esdMaskedTextBox runat="server" ID="txtidPersonal" Width="100px" Mask="9999999">
                                    </esd:esdMaskedTextBox>
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Ap. Paterno
                                </td>
                                <td colspan="2">
                                    <esd:esdTextBox runat="server" ID="txtdsAPaterno" Width="180px"></esd:esdTextBox>
                                </td>
                                <td style="width: 30px;">
                                    &nbsp;
                                </td>
                                <td style="width: 110px;">
                                    Ap. Materno
                                </td>

                                <td colspan="2">
                                    <esd:esdTextBox runat="server" ID="txtdsAMaterno" Width="180px"></esd:esdTextBox>
                                </td>
                                <td style="width: 30px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Nombres
                                </td>
                                <td colspan="2">
                                    <esd:esdTextBox runat="server" ID="txtdsNombres" Width="180px"></esd:esdTextBox>
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Doc.Identidad
                                </td>
                                <td style="width: 70px;">
                                    <asp:DropDownList ID="ddlidTDocIden" runat="server" Width="70px">
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <esd:esdMaskedTextBox runat="server" ID="txtnuDocIden" Width="108px" Mask="?99999999999999999999">
                                    </esd:esdMaskedTextBox>
                                </td>
                                <td style="width: 30px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Fecha Nacimiento
                                </td>
                                <td colspan="2">
                                    <esd:esdDateTextBox ID="txtfeNacimiento" runat="server" Width="100px"></esd:esdDateTextBox>
                                </td>
                                <td style="width: 30px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Genero
                                </td>
                                <td colspan="2">
                                    <asp:DropDownList ID="ddlidSexo" runat="server" Width="185px">
                                    </asp:DropDownList>
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Nro. Telefono
                                </td>
                                <td colspan="2">
                                    <esd:esdMaskedTextBox runat="server" ID="txtnuTelf" Width="100px" Mask="?99999999999">
                                    </esd:esdMaskedTextBox>
                                </td>
                                <td style="width: 30px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Nro. Fax
                                </td>
                                <td colspan="2">
                                    <esd:esdMaskedTextBox runat="server" ID="txtnufax" Width="100px" Mask="?999999999">
                                    </esd:esdMaskedTextBox>
                                </td>
                                <td style="width: 30px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Email
                                </td>
                                <td colspan="2">
                                    <esd:esdTextBox ID="txtdsEmail" runat="server" Width="180px">
                                    </esd:esdTextBox>
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Web
                                </td>
                                <td colspan="10">
                                    <esd:esdTextBox ID="txtdsWeb" runat="server" Width="180px">
                                    </esd:esdTextBox>
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan="13">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td style="width: 10px">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <div class="DataDetail">
        <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
                <td style="width: 10px;">
                </td>
                <td>
                    <div class="ToolBarGrid">
                        <asp:Menu ID="mnuGrid" runat="server" Orientation="Horizontal" CssClass="ToolBarControl"
                            OnMenuItemClick="mnuGrid_MenuItemClick">
                            <Items>
                                <asp:MenuItem Text="Nuevo" Value="_BTTNEW" ImageUrl="../Images/Icons/Enabled/New.png">
                                </asp:MenuItem>
                            </Items>
                        </asp:Menu>
                    </div>
                    <esd:esdGridView CssClass="esdGridView" ID="grdList" runat="server" ScrollWidth="100%"
                        Width="100%" ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" DataKeyNames="nuSecuen"
                        OnRowCommand="grdList_RowCommand" OnRowDataBound="grdList_RowDataBound" >
                        <Columns>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="grdBttCmdEdit" CommandName="CmdEdit" CommandArgument="<%# Container.DataItemIndex %>"
                                        runat="server" ImageUrl="../Images/Icons/Enabled/Edit.png" ToolTip="Editar Contrato" />
                                </ItemTemplate>
                                <HeaderStyle Width="22px" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="grdBttCmdCopy" CommandName="CmdCopy" CommandArgument="<%# Container.DataItemIndex %>"
                                        runat="server" ImageUrl="../Images/Icons/Enabled/Copy.png" ToolTip="Crear Prorroga" />
                                </ItemTemplate>
                                <HeaderStyle Width="22px" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="grdBttCmdCese" CommandName="CmdCese" CommandArgument="<%# Container.DataItemIndex %>"
                                        runat="server" ImageUrl="../Images/Icons/Enabled/EditFile.png" ToolTip="Cese de Contrato" />
                                </ItemTemplate>
                                <HeaderStyle Width="22px" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="grdBttCmdDel" CommandName="CmdDel" CommandArgument="<%# Container.DataItemIndex %>"
                                        runat="server" ImageUrl="../Images/Icons/Enabled/Delete.png" ToolTip="Eliminar Contrato" />
                                </ItemTemplate>
                                <HeaderStyle Width="22px" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="grdBttCmdPrev" CommandName="CmdPrev" CommandArgument="<%# Container.DataItemIndex %>"
                                        runat="server" ImageUrl="../Images/Icons/Enabled/Preview.png" ToolTip="Imprimir Contrato" OnDataBinding="grdBttCmdPrevPostBackDataBinding" />
                                </ItemTemplate>
                                <HeaderStyle Width="22px" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>

                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="grdBttCmdDow" CommandName="CmdDow" CommandArgument="<%# Container.DataItemIndex %>"
                                        runat="server" ImageUrl="../Images/Icons/Enabled/DowloadFile.png" ToolTip="Descargar Contrato Escaneado" OnDataBinding="grdBttCmdPrevPostBackDataBinding" />
                                </ItemTemplate>
                                <HeaderStyle Width="22px" />
                                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>

                            <asp:BoundField DataField="feSuscripcion" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Fecha Suscripcion">
                            </asp:BoundField>
                            <asp:BoundField DataField="feInicio" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Fecha Inicio">
                            </asp:BoundField>
                            <asp:BoundField DataField="feFin" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Fecha Fin">
                            </asp:BoundField>
                            <asp:BoundField DataField="dsMotivFin" HeaderText="Motivo cese"></asp:BoundField>
                            <asp:BoundField DataField="feCese" DataFormatString="{0:dd/MM/yyyy}" HeaderText="Fecha Cese">
                            </asp:BoundField>
                            <asp:BoundField DataField="dsPuesto" HeaderText="Puesto"></asp:BoundField>
                            <asp:BoundField DataField="dsModalidad" HeaderText="Modalidad"></asp:BoundField>
                            <asp:BoundField DataField="dsMoneda" HeaderText="Moneda"></asp:BoundField>
                            <asp:BoundField DataField="mtRemunera" HeaderText="Monto Remuneracion">
                                <ItemStyle HorizontalAlign="Right" />
                            </asp:BoundField>
                            <asp:BoundField DataField="stContrato" HeaderStyle-CssClass="hideDataGridColumn"
                                ItemStyle-CssClass="hideDataGridColumn"></asp:BoundField>
                            <asp:BoundField DataField="stAnulado" HeaderStyle-CssClass="hideDataGridColumn" ItemStyle-CssClass="hideDataGridColumn">
                            </asp:BoundField>
                            <asp:BoundField DataField="stContraArch" HeaderStyle-CssClass="hideDataGridColumn" ItemStyle-CssClass="hideDataGridColumn">
                            </asp:BoundField>
                        </Columns>
                        <EmptyDataTemplate>
                            <div id="gridempty">
                                <asp:Image ID="imgEmpty" runat="server" ImageUrl="../Images/Controls/Attention.png" />
                                &nbsp;No existen registros para esta solicitud.
                            </div>
                        </EmptyDataTemplate>
                    </esd:esdGridView>
                </td>
                <td style="width: 10px;">
                </td>
            </tr>
        </table>
    </div>

    <asp:HiddenField ID="hdnMsgOPB" runat="server" />
    <asp:HiddenField ID="hdnidCliProv" runat="server" />
    <asp:HiddenField ID="hdnidPais" runat="server" />
    <asp:HiddenField ID="hdnidDepa" runat="server" />
    <asp:HiddenField ID="hdnidProv" runat="server" />
    <asp:HiddenField ID="hdnidDist" runat="server" />
    <asp:HiddenField ID="hdnidPais2" runat="server" />
    <asp:HiddenField ID="hdnidDepa2" runat="server" />
    <asp:HiddenField ID="hdnidProv2" runat="server" />
    <asp:HiddenField ID="hdnidDist2" runat="server" />

    <asp:Panel runat="server" ID="PnlPopup" CssClass="modalPopup" Style="display: none;"
        Width="850px">
        <table width="100%" cellpadding="0" cellspacing="2">
            <tr>
                <td colspan="3">
                    <div class="modalPopupHeader">
                        &nbsp;&nbsp;&nbsp;<asp:Label ID="lblTitlePopup" runat="server"></asp:Label>
                    </div>
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="width: 5px;">
                    &nbsp;
                </td>
                <td>
                    <table width="100%" cellpadding="0" cellspacing="2">
                        <tr>
                            <td colspan="13">
                                <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                                    -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                    <table width="100%" cellpadding="0" cellspacing="2">
                                        <tr>
                                            <td colspan="13">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                            <td>
                                                Fecha Suscripcion
                                            </td>
                                            <td colspan="2">
                                                <esd:esdDateTextBox ID="txtfeSuscripcion" runat="server" Width="100px"></esd:esdDateTextBox>
                                            </td>
                                            <td style="width:10px;">
                                                &nbsp;
                                            </td>
                                            <td>
                                                Fecha Inicio
                                            </td>
                                            <td colspan="2">
                                                <esd:esdDateTextBox ID="txtfeInicio" runat="server" Width="100px"></esd:esdDateTextBox>
                                            </td>
                                            <td style="width: 10px;">
                                                &nbsp;
                                            </td>
                                            <td>
                                                Fecha Fin
                                            </td>
                                            <td colspan="2">
                                                <esd:esdDateTextBox ID="txtfeFin" runat="server" Width="100px"></esd:esdDateTextBox>
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="13">
                                                 <br />
                                                 <div style="width:100%; height:60px;">
                                                   <asp:Literal Mode="PassThrough" ID="liLineaTiempo" runat="server"></asp:Literal> 
                                                 </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="13">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td colspan="13">
                                <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                                    -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                    <table width="100%" cellpadding="0" cellspacing="2">
                                        <tr>
                                            <td colspan="13">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                                Puesto
                                            </td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="ddlidPuesto" runat="server" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 10px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                                Funcion
                                            </td>
                                            <td colspan="3">
                                                <esd:esdTextBox ID="txtDsFuncion" runat="server" Height="25px" 
                                                    TextMode="MultiLine" Width="250px"></esd:esdTextBox>
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                                Modalidad
                                            </td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="ddlidModalidad" AutoPostBack="true" OnSelectedIndexChanged="ddlidModal_SelectedIndexChanged"
                                                    runat="server" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 10px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                                Sub Modalidad
                                            </td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="ddlidSubModal" runat="server" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                                Grp. de Ocupacion
                                            </td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="ddlidGrpOcupac" runat="server" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 10px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                                Tipo de Remuneracion
                                            </td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="ddlidRemVariable" runat="server" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>  
                                         </tr>
                                         <tr>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>    
                                            <td colspan="2">
                                                Moneda
                                            </td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="ddlidMoneda" runat="server" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 10px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                                Periodo Remuneracion
                                            </td>
                                            <td colspan="3">
                                                <asp:DropDownList ID="ddlidPeriRemu" runat="server" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                                Monto Remuneracion
                                            </td>
                                            <td colspan="3">
                                                <esd:esdNumericTextBox ID="txtmtRemunera" runat="server" NumericType="Decimal" Width="100px">
                                                </esd:esdNumericTextBox>
                                            </td>
                                            <td style="width: 10px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                               ¿Remuneracion en especie?
                                            </td>
                                            <td colspan="3">
                                                <asp:RadioButton ID="rdRemEspeSi" GroupName="grpRemEspe" runat="server" Text="SI" />
                                                <asp:RadioButton ID="rdRemEspeNo" GroupName="grpRemEspe" runat="server" Text="NO"
                                                    Checked="true" />
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                              ¿Presenta Discapacidad?
                                            </td>
                                            <td colspan="3">
                                                <asp:RadioButton ID="rdDiscaSi" GroupName="grpDisca" runat="server" Text="SI" />
                                                <asp:RadioButton ID="rdDiscaNo" GroupName="grpDisca" runat="server" Text="NO" Checked="true" />
                                            </td>
                                             <td style="width: 10px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                               ¿Remuneración Minima?
                                            </td>
                                            <td colspan="3">
                                                <asp:RadioButton ID="rdRemMinSI" GroupName="grpRemMin" runat="server" Text="SI" Checked="true"/>
                                                <asp:RadioButton ID="rdRemMinNO" GroupName="grpRemMin" runat="server" Text="NO"
                                                     />
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                          <tr>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                              
                                            </td>
                                            <td colspan="3">
                                                
                                            </td>
                                             <td style="width: 10px;">
                                                &nbsp;
                                            </td>
                                            <td colspan="2">
                                               Puntos de la Adenda:
                                            </td>
                                            <td colspan="3">
                                             <esd:esdTextBox ID="txtDsAdenda" runat="server" Height="25px" TextMode="MultiLine" Width="250px"></esd:esdTextBox>
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="13">
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="13">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                         
                            <td colspan="13">
                                <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                                    -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                    <table width="100%" cellpadding="0" cellspacing="3">
                                        <tr>
                                            <td style="width: 5px;">
                                                &nbsp;</td>
                                            <td>
                                                Motivo Cese
                                            </td>
                                            <td style="width: 136px;">
                                                <asp:DropDownList ID="ddlidMotivFin" runat="server" Width="150px">
                                                </asp:DropDownList>
                                            </td>
                                            <td style="width: 10px;">
                                                &nbsp;</td>
                                             <td>
                                                Fecha Cese
                                            </td>
                                            <td>
                                                <esd:esdDateTextBox ID="txtfeCese" runat="server" Width="100px">
                                                </esd:esdDateTextBox>
                                            </td>
                                            <td style="width: 77px;">
                                                Observacion:
                                            </td>
                                            <td colspan="4">
                                                <esd:esdTextBox ID="txtdsObservacion" runat="server" Height="25px" 
                                                    TextMode="MultiLine" Width="250px"></esd:esdTextBox>
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;</td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                      
                        </tr>
                         <tr>
                            <td colspan="13">
                                &nbsp;
                            </td>
                         </tr>
                         <tr>
                            <td colspan="13">
                                <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                                    -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                                    <table width="100%" cellpadding="0" cellspacing="3">
                                        <tr>
                                            <td colspan="13">
                                        
                                            </td>
                                        </tr>
                                        <tr>
                                            <td style="width: 5px;">
                                                &nbsp;</td>
                                            <td style="width: 116px;">
                                               Subir Contrato:
                                            </td>
                                            <td valign="top" style="width: 68px;">
                                             <esd:esdTextBox ID="txtidContrato" runat="server" Width="200px"></esd:esdTextBox>
                                            </td>
                                            <td valign="top" style="width: 68px;">
                                             <div class="esdDivUploadFile">
                                                   <asp:FileUpload  ID="fuidContrato" onchange="GetValueFile();" runat="server" CssClass="esdUploadFile" Width="280px" accept="pdf" />
                                                   Examinar
                                             </div>
                                            </td>
                                            <td style="width: 10px;">
                                                    
                                                </td>
                                            <td style="width: 77px;">
                                           
                                            </td>
                                            <td colspan="6">
                                            
                                            </td>
                                            <td style="width: 5px;">
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td colspan="13">
                                    
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="13">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 5px;">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="width: 5px;">
                    &nbsp;
                </td>
                <td align="right">
                    <esd:esdButton ID="bttOkPopup" runat="server" Text="Aceptar" Width="80px" OnClick="bttOkPopup_Click">
                    </esd:esdButton>
                    <esd:esdButton ID="bttCancelPopup" runat="server" Text="Cancelar" Width="80px"></esd:esdButton>
                </td>
                <td style="width: 5px;">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;
                </td>
            </tr>
        </table>
    </asp:Panel>
    <ajax:ModalPopupExtender runat="server" ID="mdlPopup" PopupControlID="PnlPopup" BackgroundCssClass="modalBackground"
        TargetControlID="hdnidCliProv">
    </ajax:ModalPopupExtender>
         </ContentTemplate> 
    <Triggers>

        <asp:PostBackTrigger ControlID = "bttOkPopup" />

    </Triggers>
</asp:UpdatePanel>
<ajax:UpdatePanelAnimationExtender ID="upae" BehaviorID="animation" runat="server"
    TargetControlID="updatePanel1">
    <animations>
        <OnUpdating>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdating();" />  
        </Parallel>
        </OnUpdating>
        <OnUpdated>
        <Parallel duration="0.5">
            <ScriptAction Script="panelOnUpdated();" /> 
        </Parallel> 
        </OnUpdated>
    </animations>
</ajax:UpdatePanelAnimationExtender>
<div id="Div1" class="updateProgress" style="display: none">
        <table width="100%">
            <tr>
                <td valign="middle">
                    <img src="../Images/Controls/Loading.gif" />
                </td>
                <td valign="middle">
                    <span class="updateProgressMessage">Cargando ...</span>
                </td>
            </tr>
        </table>
</div>
</asp:Content>
